<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import { setSysTheme, _themeColorKey } from "./style/theme";

onLaunch(() => {
  // 初始化主题色
  const bgColor = uni.getStorageSync(_themeColorKey) || '#2c3e50';
  setSysTheme(bgColor);
});
onShow(() => {
  console.log("App Show");
});
onHide(() => {
  console.log("App Hide");
});
</script>
<style>
</style>
